package cn.llming.org.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class Department {


   private Long id;
   private String name;
   private String intro;
   @JsonFormat(pattern = "YYYY-MM-dd HH:mm:sss",timezone = "GMT+8")
   private Date createTime;
   @JsonFormat(pattern = "YYYY-MM-dd HH:mm:sss",timezone = "GMT+8")
   private Date updateTime;
//   private Long managerId;

   private Employee manager;

   //private Long parentId;

   private Department parent;
   private String path;
   private Integer state;
   //存放子级部门数据
   private List<Department> children;

}
